<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>合并数组</title>
</head>

<body>
    <script>
        var arr = [
            [1, 3, 5, 7, 9],
            [2, 4, 6],
            [8, 10]
        ]
        var mix = function() {
            var result = [];
            for (var a = 0; a < arr.length; a++) {
                for (var i = 0; i < arr[a].length; i++) {
                    result.push(arr[a][i]);
                }
            }

            return result;
        }
        alert(mix());
    </script>
</body>

</html>